package com.dan.system.dto;

import com.dan.common.annotation.Excel;
import com.dan.common.annotation.Excels;
import com.dan.common.core.domain.entity.SysDept;
import com.dan.common.core.domain.entity.SysRole;
import com.dan.common.core.domain.entity.SysUser;
import lombok.Data;

import java.util.List;

/**
 * @author gaolei
 * @date 2024/12/4
 */
@Data
public class SysUserDto extends SysUser {

    /**
     * 部门对象
     */
    @Excels({
            @Excel(name = "部门名称", targetAttr = "deptName", type = Excel.Type.EXPORT),
            @Excel(name = "部门负责人", targetAttr = "leader", type = Excel.Type.EXPORT)
    })
    private SysDept dept;

    /**
     * 角色对象
     */
    private List<SysRole> roles;

    /**
     * 角色组
     */
    private Long[] roleIds;

    /**
     * 岗位组
     */
    private Long[] postIds;

    /**
     * 角色ID
     */
    private Long roleId;

}
